package all

type video func()

type Factory interface {
	Video()
}

type Play struct {
	V    video
	Name string
}

func NewVideoFunc(v video) *Play {
	return &Play{
		V: v,
	}
}

func (p *Play) Video() {
	p.V()
}

func (p *Play) InitFactory(f Factory) {
	f.Video()
}
